package com.guigu.xm.yy.service;

import com.guigu.xm.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface YyDfileService {
    PageVo fenyeaList(Integer page, Integer pageNum, DFile dFile);
    DFile chacpid(String productId);
    int update(String productId);
    //添加工序设计
    int add(MDesignProcedure mDesignProcedure);
    //添加工序明细
    int add1(MDesignProcedureDetails mDesignProcedureDetails);

    PageVo fenyeaList1(Integer page, Integer pageNum, MDesignProcedure mDesignProcedure);

    String selId();

    List<MDesignProcedure> dbcha(String productId);

    int update(MDesignProcedure mDesignProcedure);

    PageVo cha(Integer page,Integer pageNum,MDesignProcedure mDesignProcedure);

    List<MDesignProcedure> xlk();

    List<MDesignProcedure> allGxu(String parent_id);

    List<MDesignProcedureModuleDetails> allWuliao(String parent_id);

 /*   MDesignProcedureModuleDetails jisuan(String gxbh);*/

    int insertMP(MProcedure record);

    int insertmpm(MProcedureModule record);

    int insertMf(MManufacture record);

    PageVo<MManufacture> allShdan(String page,String num,String cha);

    MManufacture chaShdan(String manufactureId);

    int ShenHe(String manufactureId);

    PageVo list(Integer page,Integer pageNum);

    List<MDesignProcedure> slal(String designId);
    //查询设计方案
    List<DModule> all(String product_id);

    int xg(DModuleDetails dModuleDetails);

    String selid();

    int update(int mid);
    //修改成本小计
    int xgxj(MDesignProcedureDetails mDesignProcedureDetails);

    int add2(MDesignProcedureModuleDetails mDesignProcedureModuleDetails);

    //修改物料设计标志
    int upzt(String procedureId);

    //工序物料设计查审核
    PageVo list11(Integer page,Integer pageNum);
    //修改审核物料设计单
    int upshwl(MDesignProcedure mDesignProcedure);

    PageVo cha1(Integer page,Integer pageNum,MDesignProcedure mDesignProcedure);

    //查询生产产品
    PageVo shenc(Integer page,Integer pageNum);
    //添加生产计划单
    int add(MApply mApply);
    //获取设计编号
    String selId1();

    PageVo chajh1(Integer page,Integer pageNum);

    List<MApply> shjh1(String applyId);

    //计划单审核
    int update(MApply mApply);
    //查询所有状态
    PageVo chasy(Integer page,Integer pageNum,MApply mApply);

    //查询内部登记
    PageVo chanb(Integer page,Integer pageNum);
    //查询内部所有状态
    PageVo chanbsy(Integer page,Integer pageNum,MManufacture mManufacture);

    //登记查询
    MManufacture chadj(String manufactureId);

    //查询登记工序
    List<MProcedure> chagx(String parentId);
    //登记查
    List<MProcedure> djc(String detailsInt,String parentId);
    //修改生产工序表
    int xgsczb(MProcedure mProcedure);

    //添加工序过程记录
    int add(MProceduring mProceduring);

    //添加物料记录
    int add(MProcedureModuling mProcedureModuling);

    //分页复核
    PageVo chafh(Integer page,Integer pageNum);

    //复核查询
    MManufacture fhdj(String manufactureId);

    //查询复核工序
    List<MProcedure> chafhgx(String parentId);

    //复核查
    List<MProceduring> fuhecha(String detailsInt,String parentId);
    //登记复核通过
    int fhtg(MProcedure mProcedure);

    //修改工序数量和交接
    int gxsl(Integer detailsInt,String parentId,Integer realAmount);
    //交接复核
    int gxslfh(@Param("detailsInt") Integer detailsInt, @Param("parentId") String parentId);

    //审核完成
    int xgzt(String manufactureId);
}
